Fix headers.
LIB_SRCS += file_stream.c
LIB_SRCS += gzip_stream.c
LIB_SRCS += iostream.c
-LIB_SRCS += sys_net.c
+#LIB_SRCS += sys_net.c
LIB_SRCS += sys_string.c
LIB_OBJS := $(LIB_SRCS:.c=.o)
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_ALLOCATE_H_
-#define _XEN_LIB_ALLOCATE_H_
+#ifndef _XUTIL_ALLOCATE_H_
+#define _XUTIL_ALLOCATE_H_
/** Allocate memory for a given type, and cast. */
#define ALLOCATE(ctype) (ctype *)allocate(sizeof(ctype))
typedef void AllocateFailedFn(int size, int type);
extern AllocateFailedFn *allocate_failed_fn;
-#endif /* _XEN_LIB_ALLOCATE_H_ */
+#endif /* _XUTIL_ALLOCATE_H_ */
* along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_DEBUG_H_
-#define _XEN_LIB_DEBUG_H_
+#ifndef _XUTIL_DEBUG_H_
+#define _XUTIL_DEBUG_H_
#ifndef MODULE_NAME
#define MODULE_NAME ""
*/
#define IPFMT "%u.%u.%u.%u"
-#endif /* ! _XEN_LIB_DEBUG_H_ */
+#endif /* ! _XUTIL_DEBUG_H_ */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_FILE_STREAM_H_
-#define _XEN_LIB_FILE_STREAM_H_
+#ifndef _XUTIL_FILE_STREAM_H_
+#define _XUTIL_FILE_STREAM_H_
#ifndef __KERNEL__
#include "iostream.h"
extern int file_stream_setvbuf(IOStream *io, char *buf, int mode, size_t size);
#endif
-#endif /* !_XEN_LIB_FILE_STREAM_H_ */
+#endif /* !_XUTIL_FILE_STREAM_H_ */
-/* $Id: gzip_stream.c,v 1.4 2003/09/30 15:22:53 mjw Exp $ */
/*
* Copyright (C) 2003 Hewlett-Packard Company.
*
-#/* $Id: gzip_stream.h,v 1.3 2003/09/30 15:22:53 mjw Exp $ */
/*
* Copyright (C) 2003 Hewlett-Packard Company.
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _SP_GZIP_STREAM_H_
-#define _SP_GZIP_STREAM_H_
+#ifndef _XUTIL_GZIP_STREAM_H_
+#define _XUTIL_GZIP_STREAM_H_
#ifndef __KERNEL__
#include "iostream.h"
extern IOStream *gzip_stream_fopen(const char *file, const char *flags);
extern IOStream *gzip_stream_fdopen(int fd, const char *flags);
#endif
-#endif /* !_SP_FILE_STREAM_H_ */
+#endif /* !_XUTIL_GZIP_STREAM_H_ */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_KERNEL_STREAM_H_
-#define _XEN_LIB_KERNEL_STREAM_H_
+#ifndef _XUTIL_KERNEL_STREAM_H_
+#define _XUTIL_KERNEL_STREAM_H_
#ifdef __KERNEL__
#include "iostream.h"
#define get_stream_stdout get_stream_kernel
#endif /* __KERNEL__ */
-#endif /* !_XEN_LIB_KERNEL_STREAM_H_ */
+#endif /* !_XUTIL_KERNEL_STREAM_H_ */
-/* $Id: string_stream.h,v 1.1 2003/08/22 14:25:48 mjw Exp $ */
/*
* Copyright (C) 2001, 2002 Hewlett-Packard Company.
*
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _SP_STRING_STREAM_H_
-#define _SP_STRING_STREAM_H_
+#ifndef _XUTIL_STRING_STREAM_H_
+#define _XUTIL_STRING_STREAM_H_
#include "iostream.h"
extern IOStream *string_stream_new(char *s, int n);
extern void string_stream_init(IOStream *stream, StringData *data, char *s, int n);
-#endif /* !_SP_STRING_STREAM_H_ */
+#endif /* !_XUTIL_STRING_STREAM_H_ */
-#ifndef _XENO_SYS_CTYPE_H_
-#define _XENO_SYS_CTYPE_H_
+#ifndef _XUTIL_SYS_CTYPE_H_
+#define _XUTIL_SYS_CTYPE_H_
/** @file
** Replacement for ctype include that can be used
* from user or kernel code.
#else
# include <ctype.h>
#endif
-#endif /* ! _XENO_SYS_CTYPE_H_ */
+#endif /* ! _XUTIL_SYS_CTYPE_H_ */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_SYS_NET_H_
-#define _XEN_LIB_SYS_NET_H_
+#ifndef _XUTIL_SYS_NET_H_
+#define _XUTIL_SYS_NET_H_
/** @file
*
* Replacement for standard network includes.
extern char *mac_ntoa(const unsigned char *macaddr);
extern int mac_aton(const char *addr, unsigned char *macaddr);
-#endif /* !_SP_SYS_NET_H_ */
+#endif /* !_XUTIL_SYS_NET_H_ */
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#ifndef _XEN_LIB_SYS_STRING_H_
-#define _XEN_LIB_SYS_STRING_H_
+#ifndef _XUTIL_SYS_STRING_H_
+#define _XUTIL_SYS_STRING_H_
/** @file
* Replacement for standard string includes.
* Works in user or kernel code.
extern int convert_atoul(const char *s, unsigned long *v);
extern int path_concat(char *s, char *t, char **val);
-#endif /* !_XEN_LIB_SYS_STRING_H_ */
+#endif /* !_XUTIL_SYS_STRING_H_ */